LOCAL_PATH:= $(call my-dir)
ROOT_DIR:= $(LOCAL_PATH)/../..

include $(CLEAR_VARS)
include $(CLEAR_VARS)
LOCAL_MODULE := usb1.0
LOCAL_SRC_FILES := $(LOCAL_PATH)/../../../thridparty/libs/libusb-1.0/android/$(TARGET_ARCH_ABI)/libusb1.0.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)

LOCAL_LDFLAGS :=-L$(LD_LIBRARY_PATH)
LD_LIBRARY_PATH := .

LOCAL_SRC_FILES := \
		  $(LOCAL_PATH)/jnimain.cpp	\
		  $(ROOT_DIR)/common/logprintf.cpp	\
		  $(ROOT_DIR)/common/zk_sign_flag.cpp	\
		  $(ROOT_DIR)/common/pd_linux.cpp	\
          $(ROOT_DIR)/xusbdeviceapi.cpp \
		  $(ROOT_DIR)/ccid_cmd.cpp

LOCAL_C_INCLUDES := \
		$(ROOT_DIR)/include/	\
		$(ROOT_DIR)/common/	\
		$(LOCAL_PATH)/../../../thridparty/include/libusb-1.0	\
        


LOCAL_LDLIBS := -llog  -lstdc++  -ldl
LOCAL_CPPFLAGS := -fsigned-char -fvisibility=hidden -Wl,--exclude-libs,ALL -fpermissive -DCOMM_MODULE_AUTOINSTALL=1
LOCAL_CFLAGS := -fvisibility=hidden -Wl,--exclude-libs,ALL

LOCAL_STATIC_LIBRARIES := L$(LOCAL_PATH)/../../../thridparty/libs/libusb-1.0/android/$(TARGET_ARCH_ABI)
LOCAL_STATIC_LIBRARIES += usb1.0

LOCAL_MODULE := ektpdevicesdk

LOCAL_PRELINK_MODULE := false
LOCAL_ALLOW_UNDEFINED_SYMBOLS := false	

include $(BUILD_SHARED_LIBRARY)
